'use strict';
/**
 * @name 消息页的controller
 * @author zyf
 */
angular.module('metalabPartnerApp')
    .controller('MessageIndexCtrl', ['$scope', '$stateParams', '$state', '$filter', 'MetaResources', 'MetaRemind',
        'allTotal', 'systemTotal', 'personalTotal', 'projectTotal', 'recommendTotal', 'accountTotal',
        function ($scope, $stateParams, $state, $filter, MetaResources, MetaRemind,
                  allTotal, systemTotal, personalTotal, projectTotal, recommendTotal, accountTotal) {

            /**
             *total
             * .all
             * .personal
             * .project
             * .process
             * .account
             * 分别代表5种的总数
             */

            $scope.total = {
                all: allTotal,
                system: systemTotal,
                personal: personalTotal,
                project: projectTotal,
                recommend: recommendTotal,
                account: accountTotal
            };

        }]);
